<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Open a new Shockwave Flash file</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.swf-oncondition.html">swf_oncondition</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.swf-ortho2.html">swf_ortho2</a></div>
 <div class="up"><a href="ref.swf.html">SWF 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.swf-openfile" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">swf_openfile</h1>
  <p class="verinfo">(PHP 4)</p><p class="refpurpose"><span class="refname">swf_openfile</span> &mdash; <span class="dc-title">Open a new Shockwave Flash file</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.swf-openfile-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>swf_openfile</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$width</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$height</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$framerate</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$r</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$g</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$b</code></span>
   )</div>

  <p class="para rdfs-comment">
   Opens a new file. This must be the first function you call, otherwise your
   script will not work.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.swf-openfile-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">filename</code></em></dt>

     <dd>

      <p class="para">
       The path to the SWF file. If you want to send your output to the
       screen, set this to <em>php://stdout</em>.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">width</code></em></dt>

     <dd>

      <p class="para">
       The movie width
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">height</code></em></dt>

     <dd>

      <p class="para">
       The movie height
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">framerate</code></em></dt>

     <dd>

      <p class="para">
       The frame rate.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">r</code></em></dt>

     <dd>

      <p class="para">
       Red value for the background.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">g</code></em></dt>

     <dd>

      <p class="para">
       Green value for the background.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">b</code></em></dt>

     <dd>

      <p class="para">
       Blue value for the background.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.swf-openfile-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.swf-openfile-changelog">
  <h3 class="title">更新日志</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>版本</th>
       <th>说明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>4.0.1</td>
       <td>
        Support for <em>php://stdout</em> was added.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.swf-openfile-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.swf-closefile.html" class="function" rel="rdfs-seeAlso">swf_closefile()</a> - Close the current Shockwave Flash file</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.swf-oncondition.html">swf_oncondition</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.swf-ortho2.html">swf_ortho2</a></div>
 <div class="up"><a href="ref.swf.html">SWF 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
